package net.lahuobao.finance.entity.depart;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * Created by Administrator on 2016/9/19.
 */
@Entity
@Table(name = "lahuobao.mall_ecardaccount")
@DynamicUpdate(true)
@DynamicInsert(true)
public class MallEcardaccount {


    private long                        id;          //编号
    private long                        userId;      //UserId
    private BigDecimal                  ecardBalance;//账户金额



    @Column(name = "ecardBalance")
    public BigDecimal getEcardBalance() {
        return ecardBalance;
    }

    public void setEcardBalance(BigDecimal ecardBalance) {
        this.ecardBalance = ecardBalance;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "userId")
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }
}
